//
//  LBMarqueeLayer.h
//  TEXT
//
//  Created by mac on 2024/4/28.
//  Copyright © 2024 刘博. All rights reserved.
//

#import <QuartzCore/QuartzCore.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface LBMarqueeLayerConfig:NSObject

//速度，默认20
@property (nonatomic, assign) CGFloat velocity;

//字体
@property (nonatomic, assign) CGFloat fontSize;

//文字
@property (nonatomic, copy) NSString *text;

//文字颜色
@property (nonatomic, strong) UIColor *textColor;

//有暂停
@property (nonatomic, assign) BOOL hasPause;

//暂停时间，默认3秒
@property (nonatomic, assign) CGFloat pauseDuration;

//间隔空字符串
@property (nonatomic, copy) NSString *blankString;

@end

@interface LBMarqueeLayer : CALayer


- (instancetype)initwithFrame:(CGRect)frame
                       config:(LBMarqueeLayerConfig *)config;

@end

NS_ASSUME_NONNULL_END
